package cn.fuzongyao.learning.android;

public class Question {
    private int textResId;
    private boolean answerTrue;

    public Question(int textResId, boolean answerTrue) {
        this.textResId = textResId;
        this.answerTrue = answerTrue;
    }

    public int getTextResId() {
        return textResId;
    }

    public Question setTextResId(int textResId) {
        this.textResId = textResId;
        return this;
    }

    public boolean isAnswerTrue() {
        return answerTrue;
    }

    public Question setAnswerTrue(boolean answerTrue) {
        this.answerTrue = answerTrue;
        return this;
    }

    @Override
    public String toString() {
        return "Question{" +
                "textResId=" + textResId +
                ", answerTrue=" + answerTrue +
                '}';
    }
}
